package com.cdy.jxc_project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cdy.jxc_project.domain.TPurchaseList;
import com.cdy.jxc_project.mapper.TPurchaseListMapper;
import com.cdy.jxc_project.service.TPurchaseListService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/*
 * @Project:jxc_project
 * @Author:cdy(缘生)
 * @Motto:放下杂念,只为迎接明天更好的自己
 * @Date:2023/5/2 16:05
 * */
@Service
public class TPurchaseListServiceImpl extends ServiceImpl<TPurchaseListMapper, TPurchaseList> implements TPurchaseListService {

    @Resource
    private TPurchaseListMapper tPurchaseListMapper;

    @Override
    public int insertTPurchaseList(TPurchaseList tPurchaseList) {
        return tPurchaseListMapper.insert(tPurchaseList);
    }

    @Override
    public List<TPurchaseList> queryTPurchaseList(TPurchaseList tPurchaseList) {
        return tPurchaseListMapper.selectTPurchaseList(tPurchaseList);
    }

    @Override
    public List<TPurchaseList> queryAll() {
        return tPurchaseListMapper.selectList(null);
    }
}
